package com.mttang.info.core;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 类InfoFileConfigure.java的实现描述：后台发布的配置文件
 * 
 * @author caizhan 2010-6-8 下午05:33:14
 */
public class InfoFileConfigure implements Serializable {

    private static final long   serialVersionUID    = 1L;

    private static final String SPLIT_SIGN          = "\\|";

    public static final String  FILE_PATH           = "file";
    public static final String  HTML_PATH           = "html";
    public static final String  BEAN_PATH           = "bean";

    private static final String AD_TEMP_PATH        = "adTemp";
    private static final String AD_PATH             = "ad";
    private static final String TEMPLATE_PATH       = "template";
    private static final String TEMPLATE_ZIP_PATH   = "templateZip";
    private static final String GAME_CHANNEL_PATH   = "game/channel";
    private static final String GAME_AD_PATH        = "game/ad";
    private static final String GAME_MINI_PATH      = "game/mini";
    private static final String GAME_CHALLENGE_PATH = "game/challenge";
    private static final String NEWS_PATH           = "news";
    private static final String VOTE_PATH           = "vote";
    // private static final String RANKING_PATH = "ranking";
    private static final String OTHER_PATH          = "other";

    private String              tempUploadLinux;                       // 上传临时目录
    private String              tempUploadWindow;                      // 上传临时目录
    private String              remoteFileHost;                        // 静态文件服务器ip
    private String              remoteHtmlHost;                        // HTML文件服务器ip
    private String[]            remoteFileHosts;                       // 静态文件服务器ip
    private String[]            remoteHtmlHosts;                       // HTML文件服务器ip

    private String              remoteFileUser;                        // 静态文件服务器用户
    private String              remoteHtmlUser;                        // 静态文件服务器用户
    private String              remoteFilePath;                        // 目录中后台的文件夹
    private String              remoteHtmlPath;                        // 目录中后台的文件夹
    private String              remoteFileWeb;                         // 静态文件域名
    private String              remoteHtmlWeb;                         // HTML文件域名
    private String              localPath;                             // web 服务器的文件根目录
    private String              localWeb;                              // 本地web 站点

    // 域名
    private String              htmlIndexWeb;                          // HTML首页
    private String              htmlNewsWeb;                           // HTML新闻
    private String              htmlTemplateWeb;                       // 模板文件
    private String              htmlAdWeb;                             // HTML广告
    private String              htmlGameChannelWeb;                    // HTML
    private String              htmlGameAdWeb;                         // HTML
    private String              htmlGameMiniWeb;                       // HTML
    private String              htmlGameChallengeWeb;                  // HTML
    private String              htmlWebVoteWeb;                        // HTML
    private String              htmlPictureWeb;                        // HTML
    private String              htmlOtherWeb;                          // HTML

    private String              fileNewsWeb;                           // file新闻目录
    private String              fileTemplateWeb;                       // 模板文件目录
    private String              fileAdWeb;                             // file广告目录
    private String              fileGameChannelWeb;                    // file目录
    private String              fileGameAdWeb;                         // file目录
    private String              fileGameMiniWeb;                       // file目录
    private String              fileGameChallengeWeb;                  // file目录
    private String              fileWebVoteWeb;                        // file目录
    private String              filePictureWeb;                        // file目录
    private String              fileRankingWeb;                        // file目录
    private String              fileOtherWeb;                          // file目录

    // 静态文件
    // private String htmlBasePath; // 静态文件基目录
    private String              htmlIndexPath;                         // HTML新闻目录
    private String              htmlNewsPath;                          // HTML新闻目录
    private String              htmlTemplatePath;                      // 模板文件目录
    private String              htmlAdPath;                            // HTML广告目录
    private String              htmlGameChannelPath;                   // HTML目录
    private String              htmlGameAdPath;                        // HTML目录
    private String              htmlGameMiniPath;                      // HTML目录
    private String              htmlGameChallengePath;                 // HTML目录
    private String              htmlWebVotePath;                       // HTML目录
    private String              htmlPicturePath;                       // HTML目录
    private String              htmlOtherPath;                         // HTML目录

    private String              fileNewsPath;                          // file新闻目录
    private String              fileTemplatePath;                      // 模板文件目录
    private String              fileAdPath;                            // file广告目录
    private String              fileGameChannelPath;                   // file目录
    private String              fileGameAdPath;                        // file目录
    private String              fileGameMiniPath;                      // file目录
    private String              fileGameChallengePath;                 // file目录
    private String              fileWebVotePath;                       // file目录
    private String              filePicturePath;                       // file目录
    private String              fileRankingPath;                       // file目录
    private String              fileOtherPath;                         // file目录
    private String              fileGameServerPath;

    // 文件路径
    private String              imagePath;                             // 图片目录
    private String              flashPath;                             // flash目录
    private String              meadiaPath;                            // 多媒体目录
    private String              jsPath;                                // js目录
    private String              cssPath;                               // css目录
    private String              cnfPath;                               // 配置文件目录
    private String              commonPath;                            // 其他类型目录

    // 文件类型
    private String              imageType;                             // 图片类型
    private String              flashType;                             // flash类型
    private String              meadiaType;                            // 多媒体类型
    private String              jsType;                                // js类型
    private String              cssType;                               // css类型
    private String              cnfType;                               // 配置文件类型

    // 文件类型
    private String[]            imageTypes;
    private String[]            flashTypes;
    private String[]            meadiaTypes;
    private String[]            jsTypes;
    private String[]            cssTypes;
    private String[]            cnfTypes;

    
    //活动图片
    private String actBugImagePath;
    private String actBugPath;

    public String getActBugImagePath() {
		return actBugImagePath;
	}

	public void setActBugImagePath(String actBugImagePath) {
		this.actBugImagePath = actBugImagePath;
	}

	public String getActBugPath() {
		return actBugPath;
	}

	public void setActBugPath(String actBugPath) {
		this.actBugPath = actBugPath;
	}

	/**
     * @return the tempUploadLinux
     */
    public String getTempUploadLinux() {
        return tempUploadLinux;
    }

    /**
     * @param tempUploadLinux the tempUploadLinux to set
     */
    public void setTempUploadLinux(String tempUploadLinux) {
        this.tempUploadLinux = trim(tempUploadLinux);
    }

    /**
     * @return the tempUploadWindow
     */
    public String getTempUploadWindow() {
        return tempUploadWindow;
    }

    /**
     * @param tempUploadWindow the tempUploadWindow to set
     */
    public void setTempUploadWindow(String tempUploadWindow) {
        this.tempUploadWindow = trim(tempUploadWindow);
    }

    /**
     * @return the remoteFileHost
     */
    public String getRemoteFileHost() {
        return remoteFileHost;
    }

    /**
     * @param remoteFileHost the remoteFileHost to set
     */
    public void setRemoteFileHost(String remoteFileHost) {
        this.remoteFileHost = trim(remoteFileHost);
        this.setRemoteFileHosts(remoteFileHost.split(SPLIT_SIGN));
    }

    /**
     * @return the remoteHtmlHost
     */
    public String getRemoteHtmlHost() {
        return remoteHtmlHost;
    }

    /**
     * @param remoteHtmlHost the remoteHtmlHost to set
     */
    public void setRemoteHtmlHost(String remoteHtmlHost) {
        this.remoteHtmlHost = trim(remoteHtmlHost);
        this.setRemoteHtmlHosts(remoteHtmlHost.split(SPLIT_SIGN));
    }

    /**
     * @return the remoteHosts
     */
    public String[] getRemoteFileHosts() {
        return remoteFileHosts;
    }

    /**
     * @param remoteHosts the remoteHosts to set
     */
    public void setRemoteFileHosts(String[] remoteFileHosts) {
        this.remoteFileHosts = trim(remoteFileHosts);
    }

    /**
     * @return the remoteHtmlHosts
     */
    public String[] getRemoteHtmlHosts() {
        return remoteHtmlHosts;
    }

    /**
     * @param remoteHtmlHosts the remoteHtmlHosts to set
     */
    public void setRemoteHtmlHosts(String[] remoteHtmlHosts) {
        this.remoteHtmlHosts = trim(remoteHtmlHosts);
    }

    /**
     * @return the remoteFileUser
     */
    public String getRemoteFileUser() {
        return remoteFileUser;
    }

    /**
     * @param remoteFileUser the remoteFileUser to set
     */
    public void setRemoteFileUser(String remoteFileUser) {
        this.remoteFileUser = trim(remoteFileUser);
    }

    /**
     * @return the remoteHtmlUser
     */
    public String getRemoteHtmlUser() {
        return remoteHtmlUser;
    }

    /**
     * @param remoteHtmlUser the remoteHtmlUser to set
     */
    public void setRemoteHtmlUser(String remoteHtmlUser) {
        this.remoteHtmlUser = trim(remoteHtmlUser);
    }

    /**
     * @return the remoteFilePath
     */
    public String getRemoteFilePath() {
        return remoteFilePath;
    }

    /**
     * @param remoteFilePath the remoteFilePath to set
     */
    public void setRemoteFilePath(String remoteFilePath) {
        this.remoteFilePath = trim(remoteFilePath);
    }

    /**
     * @return the remoteHtmlPath
     */
    public String getRemoteHtmlPath() {
        return remoteHtmlPath;
    }

    /**
     * @param remoteHtmlPath the remoteHtmlPath to set
     */
    public void setRemoteHtmlPath(String remoteHtmlPath) {
        this.remoteHtmlPath = trim(remoteHtmlPath);
    }

    /**
     * @return the remoteFileWeb
     */
    public String getRemoteFileWeb() {
        return remoteFileWeb;
    }

    /**
     * @param remoteFileWeb the remoteFileWeb to set
     */
    public void setRemoteFileWeb(String remoteFileWeb) {
        this.remoteFileWeb = trim(remoteFileWeb);
    }

    /**
     * @return the remoteHtmlWeb
     */
    public String getRemoteHtmlWeb() {
        return remoteHtmlWeb;
    }

    /**
     * @param remoteHtmlWeb the remoteHtmlWeb to set
     */
    public void setRemoteHtmlWeb(String remoteHtmlWeb) {
        this.remoteHtmlWeb = trim(remoteHtmlWeb);
    }

    /**
     * @return the localPath
     */
    public String getLocalPath() {
        return localPath;
    }

    /**
     * @param localPath the localPath to set
     */
    public void setLocalPath(String localPath) {
        this.localPath = trim(localPath);
    }

    /**
     * @return the localWeb
     */
    public String getLocalWeb() {
        return localWeb;
    }

    /**
     * @param localWeb the localWeb to set
     */
    public void setLocalWeb(String localWeb) {
        this.localWeb = trim(localWeb);
    }

    /**
     * @return the adTempPath
     */
    public String getAdTempPath() {
        return AD_TEMP_PATH;
    }

    /**
     * @return the adPath
     */
    public String getAdPath() {
        return AD_PATH;
    }

    /**
     * @return the templatePath
     */
    public String getTemplatePath() {
        return TEMPLATE_PATH;
    }

    /**
     * @return the templateZipPath
     */
    public String getTemplateZipPath() {
        return TEMPLATE_ZIP_PATH;
    }

    /**
     * @return the gameChannelPath
     */
    public String getGameChannelPath() {
        return GAME_CHANNEL_PATH;
    }

    /**
     * @return the gameAdPath
     */
    public String getGameAdPath() {
        return GAME_AD_PATH;
    }

    /**
     * @return the gameMiniPath
     */
    public String getGameMiniPath() {
        return GAME_MINI_PATH;
    }

    /**
     * @return the getGameChallengePath
     */
    public String getGameChallengePath() {
        return GAME_CHALLENGE_PATH;
    }

    /**
     * @return the newsPath
     */
    public String getNewsPath() {
        return NEWS_PATH;
    }

    /**
     * @return the votePath
     */
    public String getVotePath() {
        return VOTE_PATH;
    }

    // public String getRankingPath() {
    // return RANKING_PATH;
    // }

    /**
     * @return the otherPath
     */
    public String getOtherPath() {
        return OTHER_PATH;
    }

    /**
     * @return the htmlBasePath
     */
    // public String getHtmlBasePath() {
    // if (htmlBasePath == null) {
    // return "";
    // }
    // return htmlBasePath;
    // }

    // /**
    // * @param htmlBasePath the htmlBasePath to set
    // */
    // public void setHtmlBasePath(String htmlBasePath) {
    // this.htmlBasePath = trim(htmlBasePath);
    // }

    /**
     * @return the htmlIndexWeb
     */
    public String getHtmlIndexWeb() {
        return htmlIndexWeb;
    }

    /**
     * @param htmlIndexWeb the htmlIndexWeb to set
     */
    public void setHtmlIndexWeb(String htmlIndexWeb) {
        this.htmlIndexWeb = trim(htmlIndexWeb);
    }

    /**
     * @return the htmlNewsWeb
     */
    public String getHtmlNewsWeb() {
        return htmlNewsWeb;
    }

    /**
     * @param htmlNewsWeb the htmlNewsWeb to set
     */
    public void setHtmlNewsWeb(String htmlNewsWeb) {
        this.htmlNewsWeb = trim(htmlNewsWeb);
    }

    /**
     * @return the htmlTemplateWeb
     */
    public String getHtmlTemplateWeb() {
        return htmlTemplateWeb;
    }

    /**
     * @param htmlTemplateWeb the htmlTemplateWeb to set
     */
    public void setHtmlTemplateWeb(String htmlTemplateWeb) {
        this.htmlTemplateWeb = trim(htmlTemplateWeb);
    }

    /**
     * @return the htmlAdWeb
     */
    public String getHtmlAdWeb() {
        return htmlAdWeb;
    }

    /**
     * @param htmlAdWeb the htmlAdWeb to set
     */
    public void setHtmlAdWeb(String htmlAdWeb) {
        this.htmlAdWeb = trim(htmlAdWeb);
    }

    /**
     * @return the htmlGameChannelWeb
     */
    public String getHtmlGameChannelWeb() {
        return htmlGameChannelWeb;
    }

    /**
     * @param htmlGameChannelWeb the htmlGameChannelWeb to set
     */
    public void setHtmlGameChannelWeb(String htmlGameChannelWeb) {
        this.htmlGameChannelWeb = trim(htmlGameChannelWeb);
    }

    /**
     * @return the htmlGameAdWeb
     */
    public String getHtmlGameAdWeb() {
        return htmlGameAdWeb;
    }

    /**
     * @param htmlGameAdWeb the htmlGameAdWeb to set
     */
    public void setHtmlGameAdWeb(String htmlGameAdWeb) {
        this.htmlGameAdWeb = trim(htmlGameAdWeb);
    }

    /**
     * @return the htmlGameMiniWeb
     */
    public String getHtmlGameMiniWeb() {
        return htmlGameMiniWeb;
    }

    /**
     * @param htmlGameMiniWeb the htmlGameMiniWeb to set
     */
    public void setHtmlGameMiniWeb(String htmlGameMiniWeb) {
        this.htmlGameMiniWeb = trim(htmlGameMiniWeb);
    }

    /**
     * @return the htmlWebVoteWeb
     */
    public String getHtmlWebVoteWeb() {
        return htmlWebVoteWeb;
    }

    /**
     * @param htmlWebVoteWeb the htmlWebVoteWeb to set
     */
    public void setHtmlWebVoteWeb(String htmlWebVoteWeb) {
        this.htmlWebVoteWeb = trim(htmlWebVoteWeb);
    }

    
    /**
     * @return the htmlPictureWeb
     */
    public String getHtmlPictureWeb() {
        return htmlPictureWeb;
    }

    
    /**
     * @param htmlPictureWeb the htmlPictureWeb to set
     */
    public void setHtmlPictureWeb(String htmlPictureWeb) {
        this.htmlPictureWeb = trim(htmlPictureWeb);
    }

    /**
     * @return the htmlOtherWeb
     */
    public String getHtmlOtherWeb() {
        return htmlOtherWeb;
    }

    /**
     * @param htmlOtherWeb the htmlOtherWeb to set
     */
    public void setHtmlOtherWeb(String htmlOtherWeb) {
        this.htmlOtherWeb = trim(htmlOtherWeb);
    }

    /**
     * @return the fileNewsWeb
     */
    public String getFileNewsWeb() {
        return fileNewsWeb;
    }

    /**
     * @param fileNewsWeb the fileNewsWeb to set
     */
    public void setFileNewsWeb(String fileNewsWeb) {
        this.fileNewsWeb = trim(fileNewsWeb);
    }

    /**
     * @return the fileTemplateWeb
     */
    public String getFileTemplateWeb() {
        return fileTemplateWeb;
    }

    /**
     * @param fileTemplateWeb the fileTemplateWeb to set
     */
    public void setFileTemplateWeb(String fileTemplateWeb) {
        this.fileTemplateWeb = trim(fileTemplateWeb);
    }

    /**
     * @return the fileAdWeb
     */
    public String getFileAdWeb() {
        return fileAdWeb;
    }

    /**
     * @param fileAdWeb the fileAdWeb to set
     */
    public void setFileAdWeb(String fileAdWeb) {
        this.fileAdWeb = trim(fileAdWeb);
    }

    /**
     * @return the fileGameChannelWeb
     */
    public String getFileGameChannelWeb() {
        return fileGameChannelWeb;
    }

    /**
     * @param fileGameChannelWeb the fileGameChannelWeb to set
     */
    public void setFileGameChannelWeb(String fileGameChannelWeb) {
        this.fileGameChannelWeb = trim(fileGameChannelWeb);
    }

    /**
     * @return the fileGameAdWeb
     */
    public String getFileGameAdWeb() {
        return fileGameAdWeb;
    }

    /**
     * @param fileGameAdWeb the fileGameAdWeb to set
     */
    public void setFileGameAdWeb(String fileGameAdWeb) {
        this.fileGameAdWeb = trim(fileGameAdWeb);
    }

    /**
     * @return the fileGameMiniWeb
     */
    public String getFileGameMiniWeb() {
        return fileGameMiniWeb;
    }

    /**
     * @param fileGameMiniWeb the fileGameMiniWeb to set
     */
    public void setFileGameMiniWeb(String fileGameMiniWeb) {
        this.fileGameMiniWeb = trim(fileGameMiniWeb);
    }

    /**
     * @return the fileWebVoteWeb
     */
    public String getFileWebVoteWeb() {
        return fileWebVoteWeb;
    }

    /**
     * @param fileWebVoteWeb the fileWebVoteWeb to set
     */
    public void setFileWebVoteWeb(String fileWebVoteWeb) {
        this.fileWebVoteWeb = trim(fileWebVoteWeb);
    }

    
    /**
     * @return the filePictureWeb
     */
    public String getFilePictureWeb() {
        return filePictureWeb;
    }

    
    /**
     * @param filePictureWeb the filePictureWeb to set
     */
    public void setFilePictureWeb(String filePictureWeb) {
        this.filePictureWeb = trim(filePictureWeb);
    }

    /**
     * @return the fileRankingWeb
     */
    public String getFileRankingWeb() {
        return fileRankingWeb;
    }

    /**
     * @param fileRankingWeb the fileRankingWeb to set
     */
    public void setFileRankingWeb(String fileRankingWeb) {
        this.fileRankingWeb = trim(fileRankingWeb);
    }

    /**
     * @return the fileOtherWeb
     */
    public String getFileOtherWeb() {
        return fileOtherWeb;
    }

    /**
     * @param fileOtherWeb the fileOtherWeb to set
     */
    public void setFileOtherWeb(String fileOtherWeb) {
        this.fileOtherWeb = trim(fileOtherWeb);
    }

    /**
     * @return the htmlIndexPath
     */
    public String getHtmlIndexPath() {
        return htmlIndexPath;
    }

    /**
     * @param htmlIndexPath the htmlIndexPath to set
     */
    public void setHtmlIndexPath(String htmlIndexPath) {
        this.htmlIndexPath = trim(htmlIndexPath);
    }

    /**
     * @return the htmlNewsPath
     */
    public String getHtmlNewsPath() {
        return htmlNewsPath;
    }

    /**
     * @param htmlNewsPath the htmlNewsPath to set
     */
    public void setHtmlNewsPath(String htmlNewsPath) {
        this.htmlNewsPath = trim(htmlNewsPath);
    }

    /**
     * @return the htmlTemplatePath
     */
    public String getHtmlTemplatePath() {
        return htmlTemplatePath;
    }

    /**
     * @param htmlTemplatePath the htmlTemplatePath to set
     */
    public void setHtmlTemplatePath(String htmlTemplatePath) {
        this.htmlTemplatePath = trim(htmlTemplatePath);
    }

    /**
     * @return the htmlAdPath
     */
    public String getHtmlAdPath() {
        return htmlAdPath;
    }

    /**
     * @param htmlAdPath the htmlAdPath to set
     */
    public void setHtmlAdPath(String htmlAdPath) {
        this.htmlAdPath = trim(htmlAdPath);
    }

    /**
     * @return the htmlGameChannelPath
     */
    public String getHtmlGameChannelPath() {
        return htmlGameChannelPath;
    }

    /**
     * @param htmlGameChannelPath the htmlGameChannelPath to set
     */
    public void setHtmlGameChannelPath(String htmlGameChannelPath) {
        this.htmlGameChannelPath = trim(htmlGameChannelPath);
    }

    /**
     * @return the htmlGameAdPath
     */
    public String getHtmlGameAdPath() {
        return htmlGameAdPath;
    }

    /**
     * @param htmlGameAdPath the htmlGameAdPath to set
     */
    public void setHtmlGameAdPath(String htmlGameAdPath) {
        this.htmlGameAdPath = trim(htmlGameAdPath);
    }

    /**
     * @return the htmlGameMiniPath
     */
    public String getHtmlGameMiniPath() {
        return htmlGameMiniPath;
    }

    /**
     * @param htmlGameMiniPath the htmlGameMiniPath to set
     */
    public void setHtmlGameMiniPath(String htmlGameMiniPath) {
        this.htmlGameMiniPath = trim(htmlGameMiniPath);
    }

    /**
     * @return the htmlWebVotePath
     */
    public String getHtmlWebVotePath() {
        return htmlWebVotePath;
    }

    /**
     * @param htmlWebVotePath the htmlWebVotePath to set
     */
    public void setHtmlWebVotePath(String htmlWebVotePath) {
        this.htmlWebVotePath = trim(htmlWebVotePath);
    }

    
    /**
     * @return the htmlPicturePath
     */
    public String getHtmlPicturePath() {
        return htmlPicturePath;
    }

    
    /**
     * @param htmlPicturePath the htmlPicturePath to set
     */
    public void setHtmlPicturePath(String htmlPicturePath) {
        this.htmlPicturePath = trim(htmlPicturePath);
    }

    /**
     * @return the htmlOtherPath
     */
    public String getHtmlOtherPath() {
        return htmlOtherPath;
    }

    /**
     * @param htmlOtherPath the htmlOtherPath to set
     */
    public void setHtmlOtherPath(String htmlOtherPath) {
        this.htmlOtherPath = trim(htmlOtherPath);
    }

    /**
     * @return the fileNewsPath
     */
    public String getFileNewsPath() {
        return fileNewsPath;
    }

    /**
     * @param fileNewsPath the fileNewsPath to set
     */
    public void setFileNewsPath(String fileNewsPath) {
        this.fileNewsPath = trim(fileNewsPath);
    }

    /**
     * @return the fileTemplatePath
     */
    public String getFileTemplatePath() {
        return fileTemplatePath;
    }

    /**
     * @param fileTemplatePath the fileTemplatePath to set
     */
    public void setFileTemplatePath(String fileTemplatePath) {
        this.fileTemplatePath = trim(fileTemplatePath);
    }

    /**
     * @return the fileAdPath
     */
    public String getFileAdPath() {
        return fileAdPath;
    }

    /**
     * @param fileAdPath the fileAdPath to set
     */
    public void setFileAdPath(String fileAdPath) {
        this.fileAdPath = trim(fileAdPath);
    }

    /**
     * @return the fileGameChannelPath
     */
    public String getFileGameChannelPath() {
        return fileGameChannelPath;
    }

    /**
     * @param fileGameChannelPath the fileGameChannelPath to set
     */
    public void setFileGameChannelPath(String fileGameChannelPath) {
        this.fileGameChannelPath = trim(fileGameChannelPath);
    }

    /**
     * @return the fileGameAdPath
     */
    public String getFileGameAdPath() {
        return fileGameAdPath;
    }

    /**
     * @param fileGameAdPath the fileGameAdPath to set
     */
    public void setFileGameAdPath(String fileGameAdPath) {
        this.fileGameAdPath = trim(fileGameAdPath);
    }

    /**
     * @return the fileGameMiniPath
     */
    public String getFileGameMiniPath() {
        return fileGameMiniPath;
    }

    /**
     * @param fileGameMiniPath the fileGameMiniPath to set
     */
    public void setFileGameMiniPath(String fileGameMiniPath) {
        this.fileGameMiniPath = trim(fileGameMiniPath);
    }

    /**
     * @return the fileWebVotePath
     */
    public String getFileWebVotePath() {
        return fileWebVotePath;
    }

    /**
     * @param fileWebVotePath the fileWebVotePath to set
     */
    public void setFileWebVotePath(String fileWebVotePath) {
        this.fileWebVotePath = trim(fileWebVotePath);
    }
    
    /**
     * @return the filePicturePath
     */
    public String getFilePicturePath() {
        return filePicturePath;
    }

    
    /**
     * @param filePicturePath the filePicturePath to set
     */
    public void setFilePicturePath(String filePicturePath) {
        this.filePicturePath = trim(filePicturePath);
    }

    /**
     * @return the fileRankingPath
     */
    public String getFileRankingPath() {
        return fileRankingPath;
    }

    /**
     * @param fileRankingPath the fileRankingPath to set
     */
    public void setFileRankingPath(String fileRankingPath) {
        this.fileRankingPath = trim(fileRankingPath);
    }

    /**
     * @return the fileOtherPath
     */
    public String getFileOtherPath() {
        return fileOtherPath;
    }

    /**
     * @param fileOtherPath the fileOtherPath to set
     */
    public void setFileOtherPath(String fileOtherPath) {
        this.fileOtherPath = trim(fileOtherPath);
    }

    /**
     * @return the imagePath
     */
    public String getImagePath() {
        return imagePath;
    }

    /**
     * @param imagePath the imagePath to set
     */
    public void setImagePath(String imagePath) {
        this.imagePath = trim(imagePath);
    }

    /**
     * @return the flashPath
     */
    public String getFlashPath() {
        return flashPath;
    }

    /**
     * @param flashPath the flashPath to set
     */
    public void setFlashPath(String flashPath) {
        this.flashPath = trim(flashPath);
    }

    /**
     * @return the meadiaPath
     */
    public String getMeadiaPath() {
        return meadiaPath;
    }

    /**
     * @param meadiaPath the meadiaPath to set
     */
    public void setMeadiaPath(String meadiaPath) {
        this.meadiaPath = trim(meadiaPath);
    }

    /**
     * @return the jsPath
     */
    public String getJsPath() {
        return jsPath;
    }

    /**
     * @param jsPath the jsPath to set
     */
    public void setJsPath(String jsPath) {
        this.jsPath = trim(jsPath);
    }

    /**
     * @return the cssPath
     */
    public String getCssPath() {
        return cssPath;
    }

    /**
     * @param cssPath the cssPath to set
     */
    public void setCssPath(String cssPath) {
        this.cssPath = trim(cssPath);
    }

    /**
     * @return the cnfPath
     */
    public String getCnfPath() {
        return cnfPath;
    }

    /**
     * @param cnfPath the cnfPath to set
     */
    public void setCnfPath(String cnfPath) {
        this.cnfPath = trim(cnfPath);
    }

    /**
     * @return the commonPath
     */
    public String getCommonPath() {
        return commonPath;
    }

    /**
     * @param commonPath the commonPath to set
     */
    public void setCommonPath(String commonPath) {
        this.commonPath = trim(commonPath);
    }

    /**
     * @return the imageType
     */
    public String getImageType() {
        return imageType;
    }

    /**
     * @param imageType the imageType to set
     */
    public void setImageType(String imageType) {
        this.imageType = trim(imageType);
        this.setImageTypes(imageType.split(SPLIT_SIGN));
    }

    /**
     * @return the flashType
     */
    public String getFlashType() {
        return flashType;
    }

    /**
     * @param flashType the flashType to set
     */
    public void setFlashType(String flashType) {
        this.flashType = trim(flashType);
        this.setFlashTypes(flashType.split(SPLIT_SIGN));
    }

    /**
     * @return the meadiaType
     */
    public String getMeadiaType() {
        return meadiaType;
    }

    /**
     * @param meadiaType the meadiaType to set
     */
    public void setMeadiaType(String meadiaType) {
        this.meadiaType = trim(meadiaType);
        this.setMeadiaTypes(meadiaType.split(SPLIT_SIGN));
    }

    /**
     * @return the jsType
     */
    public String getJsType() {
        return jsType;
    }

    /**
     * @param jsType the jsType to set
     */
    public void setJsType(String jsType) {
        this.jsType = trim(jsType);
        this.setJsTypes(jsType.split(SPLIT_SIGN));
    }

    /**
     * @return the cssType
     */
    public String getCssType() {
        return cssType;
    }

    /**
     * @param cssType the cssType to set
     */
    public void setCssType(String cssType) {
        this.cssType = trim(cssType);
        this.setCssTypes(cssType.split(SPLIT_SIGN));
    }

    /**
     * @return the cnfType
     */
    public String getCnfType() {
        return cnfType;
    }

    /**
     * @param cnfType the cnfType to set
     */
    public void setCnfType(String cnfType) {
        this.cnfType = trim(cnfType);
        this.setCnfTypes(cnfType.split(SPLIT_SIGN));
    }

    /**
     * @return the imageTypes
     */
    public String[] getImageTypes() {
        return imageTypes;
    }

    /**
     * @param imageTypes the imageTypes to set
     */
    public void setImageTypes(String[] imageTypes) {
        this.imageTypes = trim(imageTypes);
    }

    /**
     * @return the flashTypes
     */
    public String[] getFlashTypes() {
        return flashTypes;
    }

    /**
     * @param flashTypes the flashTypes to set
     */
    public void setFlashTypes(String[] flashTypes) {
        this.flashTypes = trim(flashTypes);
    }

    /**
     * @return the meadiaTypes
     */
    public String[] getMeadiaTypes() {
        return meadiaTypes;
    }

    /**
     * @param meadiaTypes the meadiaTypes to set
     */
    public void setMeadiaTypes(String[] meadiaTypes) {
        this.meadiaTypes = trim(meadiaTypes);
    }

    /**
     * @return the jsTypes
     */
    public String[] getJsTypes() {
        return jsTypes;
    }

    /**
     * @param jsTypes the jsTypes to set
     */
    public void setJsTypes(String[] jsTypes) {
        this.jsTypes = trim(jsTypes);
    }

    /**
     * @return the cssTypes
     */
    public String[] getCssTypes() {
        return cssTypes;
    }

    /**
     * @param cssTypes the cssTypes to set
     */
    public void setCssTypes(String[] cssTypes) {
        this.cssTypes = trim(cssTypes);
    }

    /**
     * @return the cnfTypes
     */
    public String[] getCnfTypes() {
        return this.cnfTypes;
    }

    /**
     * @param cnfTypes the cnfTypes to set
     */
    public void setCnfTypes(String[] cnfTypes) {
        this.cnfTypes = trim(cnfTypes);
    }

    private String trim(String s) {
        if (s == null) {
            return s;
        }
        return s.trim();
    }

    private String[] trim(String[] arr) {
        if (arr == null) {
            return null;
        }

        boolean empty = true;
        for (int i = 0, num = arr.length; i < num; i++) {
            String s = arr[i];
            if (s != null) {
                arr[i] = s.trim();
                if (arr[i].length() > 0) {
                    empty = false;
                }
            }
        }

        return empty ? new String[0] : arr;
    }

    /**
     * 返回每一种文件类型的目录
     */
    public Map<Object, Object> getFileTypePath() {
        Map<Object, Object> filePath = new HashMap<Object, Object>();
        if (this.imageTypes != null) {
            for (String s : this.imageTypes) {
                filePath.put(s, getImagePath());
            }
        }
        if (this.flashTypes != null) {
            for (String s : flashTypes) {
                filePath.put(s, getFlashPath());
            }
        }
        if (this.meadiaTypes != null) {
            for (String s : meadiaTypes) {
                filePath.put(s, getMeadiaPath());
            }
        }
        if (this.jsTypes != null) {
            for (String s : jsTypes) {
                filePath.put(s, getJsPath());
            }
        }
        if (this.cssTypes != null) {
            for (String s : cssTypes) {
                filePath.put(s, getCssPath());
            }
        }
        if (this.cnfTypes != null) {
            for (String s : cnfTypes) {
                filePath.put(s, getCnfPath());
            }
        }
        return filePath;
    }

    /**
     * 获取指定文件类型的目录
     * 
     * @param extension 扩展名（不包含'.')
     * @return 文件类型目录
     */
    public String getFileTypePath(String extension) {
        if (extension == null) {
            return getCommonPath();
        }
        Object type = getFileTypePath().get(extension.toLowerCase());
        if (type == null) {
            return getCommonPath();
        } else {
            return type.toString();
        }
    }

    /**
     * 客服中心BUG上传附件
     */
    private String callCenterBugFile;

    public String getCallCenterBugFile() {
        return callCenterBugFile;
    }

    public void setCallCenterBugFile(String callCenterBugFile) {
        this.callCenterBugFile = callCenterBugFile;
    }

    private String gameServerJSFile;

    public String getGameServerJSFile() {
        return gameServerJSFile;
    }

    public void setGameServerJSFile(String gameServerJSFile) {
        this.gameServerJSFile = gameServerJSFile;
    }

    public String getFileGameServerPath() {
        return fileGameServerPath;
    }

    public void setFileGameServerPath(String fileGameServerPath) {
        this.fileGameServerPath = fileGameServerPath;
    }

    /**
     * @return the htmlGameChallengeWeb
     */
    public String getHtmlGameChallengeWeb() {
        return htmlGameChallengeWeb;
    }

    /**
     * @param htmlGameChallengeWeb the htmlGameChallengeWeb to set
     */
    public void setHtmlGameChallengeWeb(String htmlGameChallengeWeb) {
        this.htmlGameChallengeWeb = htmlGameChallengeWeb;
    }

    /**
     * @return the fileGameChallengeWeb
     */
    public String getFileGameChallengeWeb() {
        return fileGameChallengeWeb;
    }

    /**
     * @param fileGameChallengeWeb the fileGameChallengeWeb to set
     */
    public void setFileGameChallengeWeb(String fileGameChallengeWeb) {
        this.fileGameChallengeWeb = fileGameChallengeWeb;
    }

    /**
     * @return the htmlGameChallengePath
     */
    public String getHtmlGameChallengePath() {
        return htmlGameChallengePath;
    }

    /**
     * @param htmlGameChallengePath the htmlGameChallengePath to set
     */
    public void setHtmlGameChallengePath(String htmlGameChallengePath) {
        this.htmlGameChallengePath = htmlGameChallengePath;
    }

    /**
     * @return the fileGameChallengePath
     */
    public String getFileGameChallengePath() {
        return fileGameChallengePath;
    }

    /**
     * @param fileGameChallengePath the fileGameChallengePath to set
     */
    public void setFileGameChallengePath(String fileGameChallengePath) {
        this.fileGameChallengePath = fileGameChallengePath;
    }

}
